package cn.darkhorse.meswechat.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @description:
 * @author: mr.wang
 * @time: 2023/4/17 9:23
 */
@Repository
public interface WeChatUserDao {
	
	/**
	 * 绑定用户
	 * @param userId
	 * @param openId
	 */
	void wxBindUsers(@Param("userId") Long userId, @Param("openId") String openId);
	
	/**
	 * 解绑用户
	 * @param openId
	 */
	void wxUnbindUser(String openId);
	
	/**
	 * 更新绑定
	 * @param openId
	 */
	//void wxUpdateBindUser(String openId);
	
	/**
	 * 绑定状态
	 * @param userId
	 * @return
	 */
	String bindingState(Long userId);






}
